package org.rsbot.script.methods;

import org.rsbot.bot.Bot;
import org.rsbot.gui.AccountManager;

public class Account extends MethodProvider
{
  public Account(MethodContext paramMethodContext)
  {
    super(paramMethodContext);
  }

  public String getName()
  {
    return this.methods.bot.getAccountName();
  }

  public String getPassword()
  {
    return getName() == null ? null : AccountManager.getPassword(getName());
  }

  public String getPin()
  {
    return getName() == null ? null : AccountManager.getPin(getName());
  }

  public boolean isMember()
  {
    return AccountManager.isMember(getName());
  }

  public boolean isTakingBreaks()
  {
    return AccountManager.isTakingBreaks(getName());
  }

  public String getPreferredReward()
  {
    return getName() == null ? null : AccountManager.getReward(getName());
  }
}